package sbp.teste;

import sbp.dao.DAOFactory;
import sbp.modelos.Identificacao;
import sbp.util.HibernateUtil;

public class ListarIdentificacao {
	public static void main(String[] args) {
		HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
		Identificacao id = DAOFactory.criarIdentificacaoDAO().carregar(new Integer(4));
		System.out.println(id.getResponsavel().getCpf());
		System.out.println(id.getResponsavel().getNome());
		System.out.println(id.getEnderecoDoOrgao());
	}
}
